<?php

echo $this->doctype();
?>
<html>
<head>
<title><?php echo $this->title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php echo $this->headLink()->appendStylesheet('/css/global.css') ?>
</head>

<body>




<!-- Start editing template here -->
<table width="766" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
<!-- menu superior -->
  <tr>
    <td bgcolor="#464646" align="right"><table cellpadding="6"><tr><td><a href="http://www.templatesfreelance.com" class="style1">home</a></td>
    <td><a href="http://www.templatesfreelance.com" class="style1">contacto</a></td>
    <td><a href="http://www.templatesfreelance.com" class="style1"> mapa</a></td>
    </tr></table></td>
  </tr>
  <!-- titulos de la pagina -->
  <tr>
    <td><table width="766" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
        <td><table width="760" height="90" border="1">
          <tr>
            <th width="305" height="86" rowspan="2" nowrap background="file:///E|/FACULTAD/4� a�o/Ing. Soft/practica/SPALM/3ra iteracion/template/equis002.jpg" bgcolor="#4A748A" scope="col">&nbsp;</th>
            <th width="439" height="36" class="Estilo1" scope="col"><div align="right" class="Estilo2">SPALM v0.1 </div></th>
          </tr>
          <tr>
            <th height="46" bgcolor="#4A748A" class="Estilo3" scope="col">Menu</th>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <!-- menu navegacion principal -->
  <tr>
      <td><table width="772" border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <td width="237" valign="top"><table width="237" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                              <td background="images/button.gif" height="35"><a href="http://www.templatesfreelance.com"><img src="images/spacer.gif" width="50" height="8" border="0"></a><a href="/"><span class="style2">Inicio</span></a></td>
                          </tr>
                          <tr>
                              <td background="images/button.gif" height="35"><a href="http://www.templatesfreelance.com"><img src="images/spacer.gif" width="50" height="8" border="0"></a><a href="<?php echo $this->url(
                                                                                                                                                                                                  array('controller'=>'cliente'),
                                                                                                                                                                                                          'default',
                                                                                                                                                                                                  true) ?>"><span class="style2">Administracion de Clientes</span></a></td>
                          </tr>



                          <!-- esquina de color con nada -->
                          <tr>
                              <td>
                                  <table width="237" border="0" cellspacing="0" cellpadding="26" bgcolor="#4A748A">
                                      <tr>
                                          <td><p class="style4">&nbsp;</p></td>
                                      </tr>
                              </table></td>
                          </tr>
                          <!-- area central -->
                      </table>
                  </td>
                  <td width="535" valign="top">
                      <table name="formulario" width="535" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                              <td>
                                  <table>
                                      <tr>
                                          <th>Codigo Postal</th>
                                          <th>Nombre</th>
                                          <th>Provincia</th>
                                      </tr>
                                      <tr>

                                      </tr>
                                      <?php
                                      require_once dirname(dirname(__FILE__)) . '/models/Single/LocalidadEntity.php';

                                      //    $ciudad = new Spalm_Model_Single_LocalidadEntity();
                                      //    $localidades = $ciudad->fetchAll();
                                      //$this->layout()->setLayout('layout');
                                      foreach ($this->localidades as $localidad): ?>
                                      <tr>
                                          <td><?php echo $localidad->getCodigoPostal() ?></td>
                                          <td><?php echo $localidad->getNombre() ?></td>
                                          <td><?php echo $localidad->getProvincia()->getNombre() ?></td>
                                      </tr>
                                      <?php endforeach ?>
                                  </table>
                              </td>

                          </tr>
            </table>
        
        </td>
      </tr>
    </table>
    
    </td>
  </tr>
  <!-- pie de pagina -->
  <tr>
    <td><table width="766" border="0" cellspacing="0" cellpadding="0" background="images/gr1.gif">
      <tr>
	    <td width="15"><a href="http://www.templatesfreelance.com"><img src="images/spacer.gif" width="15" height="45" border="0"></a></td>
        <td width="355"><span class="style4">&copy; copyright 2009</span></td>
        <td width="380" align="right"><a href="http://www.templatesfreelance.com"><span class="style4">designed by SpalmGroup</span></a></td>
		<td width="16"><a href="http://www.templatesfreelance.com"><img src="images/spacer.gif" width="15" height="45" border="0"></a></td>
      </tr>
    </table></td>
  </tr>
</table>

<!-- End template editing here -->


</body>
</html>